<template>
	<view class="order-confirm-page">
		<!-- 门店信息 -->
		<view class="store-section">
			<view class="section-header">
				<wd-icon name="location" size="20px" color="#333"></wd-icon>
				<text class="section-title">{{ venueName || '' }}</text>
			</view>
			<!-- <wd-icon name="arrow-right" size="16px" color="#999"></wd-icon> -->
		</view>

		<!-- 时间选择 -->
		<view class="time-section">
			<view class="section-header">
				<wd-icon name="clock" size="20px" color="#333"></wd-icon>
				<text class="section-title">时间</text>
			</view>
			<view class="time-input2">
				<text class="t1">安排订单</text>
				<text class="t2">马上取餐</text>
			</view>
		</view>

		<!-- 订单项 -->
		<view class="order-section">
			<view class="section-title-row">
				<text class="section-title">订单项</text>
				<text class="add-more" @click="goBack">+添加更多</text>
			</view>

			<view class="order-items">
				<view v-for="(item, index) in selectedCartItems" :key="item.id" class="order-item">
					<image :src="item.cover" class="item-image"></image>
					<view class="item-info">
						<view class="item-name">{{ item.goodsName }}</view>
						<view class="item-specs">{{ item.goodsDetail }}</view>
						<view class="item-price">¥{{ item.price }}</view>
					</view>
					<view class="item-controls">
							<view 
								class="control-btn minus-btn"
								@click="changeQuantity(1,item, index)"
							>
								<wd-icon name="decrease" color="#fff" size="13px"></wd-icon>
							</view>
							<text class="quantity-text">{{ item.quantity || 1 }}</text>
							<view 
								class="control-btn plus-btn"
								@click="changeQuantity(0,item, index)"
							>
								<wd-icon name="add" color="#fff" size="13px"></wd-icon>
							</view>
						</view>
				</view>
			</view>
			<!-- 优惠券 -->
			<view class="coupon-section" @click="togglePointsUsage2">
				<view class="section-content">
					<image src="/pagesA/static/yhj.png" style="width: 34rpx;height: 34rpx;" ></image>
					<text class="section-title">使用优惠券</text>
				</view>
				<view style="display: flex;align-items: center;">
					<text style="font-size: 24rpx;color: #999;">未使用</text>
					<wd-icon name="arrow-right" size="16px" color="#999"></wd-icon>
				</view>
			</view>
			<!-- 优惠券 -->
			<view class="coupon-section" style="margin-top: 20rpx;" @click="togglePointsUsage">
				<view class="section-content">
					<image src="/pagesA/static/yhj.png" style="width: 34rpx;height: 34rpx;" ></image>
					<text class="section-title">积分</text>
				</view>
				<view style="display: flex;align-items: center;">
					<text style="font-size: 24rpx;color: #999;" v-if="!usePoints">{{userPoints}}积分可用</text>
					<text style="font-size: 24rpx;color: #ff0000;" v-else>-{{userPoints2}}</text>
					<!-- <wd-icon name="arrow-right" size="16px" color="#999"></wd-icon> -->
				</view>
			</view>
		</view>

		<!-- 积分 -->
	<!-- 	<view class="points-section" style="margin: 12rpx 0;" @click="togglePointsUsage">
			<view class="section-content">
				<text class="section-title">积分</text>
				<text class="points-balance">余额: {{ userPoints }}</text>
			</view>
			<view class="points-checkbox">
				<view class="checkbox-btn" :class="{ active: usePoints }">
					<wd-icon v-if="usePoints" name="check" size="12px" color="#fff"></wd-icon>
				</view>
			</view>
		</view> -->

		<!-- 备注 -->
		<view class="remark-section">
			<view style="width: 100%;">
				<view class="section-content">
					<text class="section-title">备注特殊要求</text>
				</view>
				<view class="time-input" style="margin-top: 20rpx;">
					<input type="text" v-model="rank" placeholder="备注特殊要求" />
				</view>
			</view>
		</view>


		<!-- 付款汇总 -->
		<view class="payment-summary">
			<view class="summary-title">付款汇总</view>
			<view class="summary-row">
				<text class="summary-label">总价目</text>
				<text class="summary-value">¥{{ cartData.totalAmount || 0 }}</text>
			</view>
			<view class="summary-row">
				<text class="summary-label">优惠</text>
				<text class="summary-value">-¥{{ 0 }}</text>
			</view>
			<view class="summary-row total">
				<text class="summary-label">总计</text>
				<text class="summary-value">¥{{ cartData.totalAmount || 0 }}</text>
			</view>
		</view>

		<!-- 支付方式 -->
		<view class="payment-methods">
			<view v-for="method in paymentMethods" :key="method.id" class="payment-method"
				@click="selectPaymentMethod(method)">
				<view class="method-info">
					<image :src="method.icon" class="method-icon"></image>
					<text class="method-name">{{ method.name }}</text>
				</view>
				<view class="method-radio">
					<view class="radio-btn" :class="{ active: selectedPaymentMethod?.id === method.id }">
						<wd-icon v-if="selectedPaymentMethod?.id === method.id" name="check" size="10px"
							color="#fff"></wd-icon>
					</view>
				</view>
			</view>
		</view>

		<!-- 底部支付按钮 -->
		<view class="bottom-bar">
			<wd-button custom-class="custom-shadowBtu" :loading="loading"  @click="showPaymentConfirm" :disabled="!selectedPaymentMethod">
				立即支付
			</wd-button>
		</view>

		<!-- 支付确认弹窗 -->
		<view v-if="showConfirmModal" class="modal-overlay" @click="hidePaymentConfirm">
			<view class="confirm-modal" @click.stop>
				<view class="modal-header">
					<image src="/pagesA/static/qr.png" style="width: 229rpx;height: 217rpx;" mode="aspectFit" />
				</view>
				<view class="modal-header">
					<view class="store-info">
						<view class="pickup-time">取餐门店：</view>
						<view class="store-name">{{ venueName || '' }}</view>
					</view>
					<view class="store-info" v-if="jfInfo>0">
						<view class="pickup-time">本单可奖励积分：</view>
						<view class="store-name">{{ jfInfo || '0' }}</view>
					</view>
				</view>
				<view class="modal-footer">
					<wd-button custom-class="custom-shadowBtu2"    @click="confirmPayment" block>
						确认
					</wd-button>
				</view>
			</view>
		</view>
	</view>
	<fui-loading type="col" v-if="loadActive" :isFixed="true" :isMask="true"></fui-loading>
</template>

<script setup>
	import { computed } from 'vue'
	
	// 响应式数据
	const selectedStore = ref(null)
	const selectedTime = ref('马上取餐')
	const showTimePicker = ref(false)
	const timePickerValue = ref(new Date())
	const showCouponPicker = ref(false)
	const showPointsPicker = ref(false)
	const selectedPaymentMethod = ref({
		id: 1,
		name: '微信支付',
		icon: '/pagesA/static/wxpay.png'
	})
	const showConfirmModal = ref(false)
	const orderNumber = ref('732732827539003')
	const loadActive = ref(false);
	const rank = ref('')
	const businessId = ref(null)
	const venueName = ref(null)
	const cartData = ref({})
	const userPoints = ref(0) // 用户积分余额
	const userPoints2 = ref(0) // 用户积分余额
	const usePoints = ref(false) // 是否使用积分
	const loading = ref(false)
	const jfInfo = ref(0) // 奖励积分数
	// 订单商品
	const orderItems = ref([])

	// 计算属性：已选择的购物车商品
	const selectedCartItems = computed(() => {
		if (!cartData.value || !cartData.value.detailList || !Array.isArray(cartData.value.detailList)) {
			return []
		}
		return cartData.value.detailList.filter(item => item && item.isSelect)
	})

	// 支付方式
	const paymentMethods = ref([{
		id: 1,
		name: '微信支付',
		icon: '/pagesA/static/wxpay.png'
	}])

	//添加跟多
	const goBack = () => {
		uni.navigateBack()
	}

	// 保存每个商品的上一次数量，用于判断加减操作
	const previousQuantities = ref({})

	/**
	 * 数量变化处理 - 通过比较前后值判断加减操作
	 */
	const changeQuantity =(type, item, index) => {
		if(type==1){
			if(item.quantity==1){
				return
			}
		}
		uni.api.optCarInfo({
			 godosId: item.goodsId,
			 goodsDetail: item.goodsDetail,
			 optType: type, //0=添加；1=减少；2=删除；
			 venueId: businessId.value
		 }).then(res => {
			 uni.$emit('refreshWaterBarData');
			 getCart();
		 })
	}

	/**
	 * 选择支付方式
	 */
	const selectPaymentMethod = (method) => {
		selectedPaymentMethod.value = method
	}

	const togglePointsUsage2 = () => {
		uni.showToast({
			title: '暂无优惠券',
			icon: 'none'
		})
	}
	/**
	 * 切换积分使用状态
	 */
	const togglePointsUsage = () => {
		if(userPoints.value<=0){
			uni.showToast({
				title: '无积分可用',
				icon: 'none'
			})
			return
		}
		uni.showModal({
			title: '是否确认使用积分支付',
			content: `当前可用积分${userPoints.value}`,
			showCancel:true,
			cancelText:'不用',
			success:  (res)=> {
				if (res.confirm) {
					usePoints.value = true;
					userPoints2.value = cartData.value.totalAmount; //正常就是减总价
					if(userPoints.value<cartData.value.totalAmount){//如果选了 且 积分大于0 且 积分小于总金额
						userPoints2.value = userPoints.value;
					}
				}else{
					usePoints.value = false;
				}
			}
		});
		
		// usePoints.value = !usePoints.value
	}


	/**
	 * 隐藏支付确认弹窗
	 */
	const hidePaymentConfirm = () => {
		showConfirmModal.value = false;
	}

	/**
	 * 显示支付确认弹窗
	 */
	const showPaymentConfirm = async () => {
		// 1=现金支付；3=积分支付；4=现金&积分支付；
		let payType = 1;
		let payCash = cartData.value.totalAmount;
		if(usePoints.value && userPoints.value>=cartData.value.totalAmount){//如果选了 且 积分大于或等总金额
			payType = 3;
		}else if(usePoints.value && userPoints.value>0 && userPoints.value<cartData.value.totalAmount){//如果选了 且 积分大于0 且 积分小于总金额
			payType = 4;
			// 保留两位小数且四舍五入
			payCash = (cartData.value.totalAmount - userPoints.value).toFixed(2);
		}else{//如果未选择积分支付，或者用户积分不足
			payType = 1;
		}
		let jfInfo2 = 0;
		if(payType != 3){
			const res2 = await uni.api.getIntegral({
				payCash:payCash,
				queryType:8
			});
			if (res2.code==0) {
				 jfInfo2 = res2?.data;
			}
		}
		jfInfo.value = jfInfo2;
		showConfirmModal.value = true;
	}
	/**
	 * 确认支付
	 */
	const confirmPayment = async () => {
		showConfirmModal.value = false;
		loading.value = true;
		// 1=现金支付；3=积分支付；4=现金&积分支付；
		let payType = 1;
		let payCash = cartData.value.totalAmount;
		if(usePoints.value && userPoints.value>=cartData.value.totalAmount){//如果选了 且 积分大于或等总金额
			payType = 3;
		}else if(usePoints.value && userPoints.value>0 && userPoints.value<cartData.value.totalAmount){//如果选了 且 积分大于0 且 积分小于总金额
			payType = 4;
			// 保留两位小数且四舍五入
			payCash = (cartData.value.totalAmount - userPoints.value).toFixed(2);
		}else{//如果未选择积分支付，或者用户积分不足
			payType = 1;
		}
		const res = await uni.api.goodsOrderPay({
			payChannel:'wx_lite',
			payType:payType,
			remark:rank.value,
			venueId:businessId.value
		});
		if(res.code==0){
			if(payType==3){//积分支付 不支付
				uni.showToast({
					title: '支付成功',
					icon: 'none'
				})
				setTimeout(()=>{
					uni.$emit('refreshWaterBarData');
					uni.redirectTo({
						url: `/pagesA/view/waterBar/orderRecord?venueId=${businessId.value}`
					})
				},300)
				return
			}else{
				const changeInfo = JSON.parse(res.data.changeInfo);
				uni.showLoading({
					title: '支付中...'
				})
				uni.pingpp.createPayment(changeInfo, function(result, err) {
					if (result == "success") {
						uni.showToast({
							title: '支付成功',
							icon: 'none'
						})
						setTimeout(()=>{
							uni.$emit('refreshWaterBarData');
							uni.redirectTo({
								url: `/pagesA/view/waterBar/orderRecord?venueId=${businessId.value}`
							})
						},300)
					}
					loading.value = false;
					uni.hideLoading()
				});
			}
			// uni.requestPayment({
			// 	provider: 'wxpay',  // 支付提供商
			// 	...changeInfo.credential.wx_lite,
			// 	success: (res) => {
			// 		uni.hideLoading()
			// 		uni.showToast({
			// 			title: '支付成功',
			// 			icon: 'none'
			// 		})
			// 	},
			// 	fail: (err) => {
			// 		uni.hideLoading()
			// 		uni.showToast({
			// 			title: '支付失败',
			// 			icon: 'none'
			// 		})
			// 	}
			// });
		}else{
			loading.value = false;
			uni.hideLoading()
			uni.showToast({
				title: '支付失败',
				icon: 'none'
			})
		}
		loading.value = false;
	}
	
  // 更新购物车
	const getCart = async (init) => {
		if(init){
		  loadActive.value = true;
		}
		const res = await uni.api.getCarInfo({businessId:businessId.value});
		if (res.code === 0) {
			// 确保购物车数据结构正确
			cartData.value = {
				...res.data,
			};
			
			// 实时计算
			if(userPoints.value){
				userPoints2.value = cartData.value.totalAmount; //正常就是减总价
				if(userPoints.value<cartData.value.totalAmount){//如果选了 且 积分大于0 且 积分小于总金额
					userPoints2.value = userPoints.value;
				}
			}
		}
		loadActive.value = false;
	}
	//获取积分
	const myIntegral = async () => {
		const res = await uni.api.myIntegral();
		if(res.code==0){
			userPoints.value = res.data?.surplusIntegral || 0;
		}
	}
	// 页面加载
	onLoad((options) => {
		businessId.value = options.businessId;
		venueName.value = options.venueName;
		getCart(true);
		myIntegral();
	})
</script>

<style scoped lang="scss">
	.order-confirm-page {
		background: #f8f8f8;
		min-height: 100vh;
		padding-bottom: 120rpx;
		width: 100%;
		box-sizing: border-box;
		overflow-x: hidden;
	}

	/* 门店信息 */
	.store-section {
		background: #fff;
		padding: 32rpx;
		// margin-bottom: 16rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;

		.section-header {
			display: flex;
			align-items: center;

			.section-title {
				font-size: 32rpx;
				color: #333;
				margin-left: 16rpx;
			}
		}
	}

	/* 时间选择 */
	.time-section {
		background: #fff;
		padding: 32rpx;
		// margin-bottom: 16rpx;

		.section-header {
			display: flex;
			align-items: center;
			margin-bottom: 24rpx;

			.section-title {
				font-size: 32rpx;
				color: #333;
				margin-left: 16rpx;
			}
		}

		.time-input2 {
			width: 100%;
			box-sizing: border-box;
			height: 128rpx;
			background: #F4F4F4;
			border-radius: 24rpx 24rpx 24rpx 24rpx;
			border: 2rpx solid #103B00;
			display: flex;
			flex-direction: column;
			justify-content: center;
			padding: 0 24rpx;

			.t1 {
				font-size: 24rpx;
				color: #A2A2A2;
			}

			.t2 {
				font-weight: 600;
				font-size: 28rpx;
				color: #313131;
				padding-top: 10rpx;
			}
		}
	}

	/* 订单项 */
	.order-section {
		background: #fff;
		padding: 32rpx;
		// margin-bottom: 16rpx;

		.section-title-row {
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin-bottom: 24rpx;

			.section-title {
				font-size: 32rpx;
				color: #333;
				font-weight: 500;
			}

			.add-more {
				font-size: 28rpx;
				color: #003C00;
			}
		}

		.order-items {
			.order-item {
				display: flex;
				align-items: center;
				padding: 24rpx 0;
				border-bottom: 1px solid #f0f0f0;

				&:last-child {
					border-bottom: none;
				}

				.item-image {
					width: 120rpx;
					height: 120rpx;
					border-radius: 12rpx;
					margin-right: 24rpx;
				}

				.item-info {
					flex: 1;

					.item-name {
						font-size: 28rpx;
						color: #333;
						margin-bottom: 8rpx;
					}

					.item-specs {
						font-size: 24rpx;
						color: #999;
						margin-bottom: 8rpx;
					}

					.item-price {
						font-size: 28rpx;
						color: #333;
						font-weight: 500;
					}
				}

				.item-controls {
					display: flex;
					align-items: center;
					.control-btn {
						width: 42rpx;
						height: 42rpx;
						border-radius: 50%;
						display: flex;
						align-items: center;
						justify-content: center;
						
						&.minus-btn {
							background: #333;
						}
						
						&.plus-btn {
							background: #333;
						}
					}
					
					.quantity-text {
						font-size: 28rpx;
						color: #333;
						margin: 0 24rpx;
						min-width: 40rpx;
						text-align: center;
					}
				}
			}
		}
	}

	/* 优惠券、积分、备注 */
	.coupon-section,
	.points-section,
	.remark-section {
		background: #fff;
		padding: 32rpx;
		// margin-bottom: 16rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;

		.section-content {
			display: flex;
			align-items: center;

			.section-title {
				font-size: 28rpx;
				color: #333;
				margin-left: 16rpx;
			}
		}

		.time-input {
			input {
				width: 100%;
				padding: 24rpx;
				background: #f8f8f8;
				border-radius: 12rpx;
				font-size: 28rpx;
				color: #333;
				border: none;
			}
		}
	}
	.coupon-section{
		width: 380rpx;
		margin: 0 auto;
		border-radius: 16rpx;
		border: 1px solid #ededed;
	}
	/* 积分模块特殊样式 */
	.points-section {
		.section-content {
			.points-balance {
				font-size: 24rpx;
				color: #666;
				margin-left: 16rpx;
			}
		}

		.points-checkbox {
			.checkbox-btn {
				width: 38rpx;
				height: 38rpx;
				border: 2px solid #ddd;
				border-radius: 38rpx;
				display: flex;
				align-items: center;
				justify-content: center;
				transition: all 0.3s ease;

				&.active {
					background: #000000;
					border-color: #000000;
				}
			}
		}
	}

	/* 付款汇总 */
	.payment-summary {
		background: #fff;
		padding: 32rpx;
		// margin-bottom: 16rpx;

		.summary-title {
			font-size: 32rpx;
			color: #333;
			font-weight: 500;
			margin-bottom: 24rpx;
		}

		.summary-row {
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin-bottom: 16rpx;

			&.total {
				padding-top: 16rpx;
				border-top: 1px solid #f0f0f0;
				margin-bottom: 0;

				.summary-label,
				.summary-value {
					font-size: 32rpx;
					font-weight: 500;
				}
			}

			.summary-label {
				font-size: 28rpx;
				color: #666;
			}

			.summary-value {
				font-size: 28rpx;
				color: #333;

				&.discount {
					color: #ff4757;
				}
			}
		}
	}

	/* 支付方式 */
	.payment-methods {
		background: #fff;
		padding: 32rpx;
		margin-bottom: 16rpx;

		.payment-method {
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 24rpx 0;
			border-bottom: 1px solid #f0f0f0;

			&:last-child {
				border-bottom: none;
			}

			.method-info {
				display: flex;
				align-items: center;

				.method-icon {
					width: 54rpx;
					height: 47rpx;
					margin-right: 24rpx;
				}

				.method-name {
					font-size: 28rpx;
					color: #333;
				}
			}

			.method-radio {
				.radio-btn {
					width: 32rpx;
					height: 32rpx;
					border: 2px solid #ddd;
					border-radius: 50%;
					display: flex;
					align-items: center;
					justify-content: center;
					transition: all 0.3s ease;

					&.active {
						background: #333;
						border-color: #333;
					}
				}
			}
		}
	}

	/* 底部支付按钮 */
	.bottom-bar {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		background: #fff;
		padding: 24rpx 32rpx;
		box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
		z-index: 999;
		width: 100%;
		box-sizing: border-box;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	/* 支付确认弹窗 */
	.modal-overlay {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0, 0, 0, 0.5);
		z-index: 9999;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 40rpx;
		box-sizing: border-box;
	}

	.confirm-modal {
		background: #fff;
		border-radius: 24rpx;
		width: 100%;
		max-width: 640rpx;
		max-height: 80vh;
		overflow-y: auto;
		box-sizing: border-box;
	}

	.modal-header {
		padding:24rpx 32rpx 12rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;

		.store-info {
			display: flex;
			align-items: center;
			text-align: center;
			margin-bottom: 30rpx;
			.store-name {
				font-size: 32rpx;
				font-weight: 500;
				color: #333;
				margin-bottom: 8rpx;
				font-weight: bold;
				margin: 10rpx 0;
				max-width: 300rpx;
			}

			.pickup-time {
				font-size: 24rpx;
				color: #999;
			}
			.pickup-time2{
				color: #333;
				font-size: 26rpx;
			}
		}

		.close-btn {
			width: 48rpx;
			height: 48rpx;
			display: flex;
			align-items: center;
			justify-content: center;
		}
	}

	.modal-content {
		padding: 32rpx;

		.pickup-number {
			text-align: center;
			margin-bottom: 32rpx;

			.number-label {
				font-size: 28rpx;
				color: #999;
				margin-bottom: 16rpx;
			}

			.number-value {
				font-size: 48rpx;
				font-weight: bold;
				color: #333;
			}
		}

		.order-items-summary {
			// margin-bottom: 32rpx;

			.item-row {
				display: flex;
				align-items: center;
				padding: 16rpx 0;
				border-bottom: 1px solid #f0f0f0;

				&:last-child {
					border-bottom: none;
				}

				.item-thumb {
					width: 80rpx;
					height: 80rpx;
					border-radius: 8rpx;
					margin-right: 16rpx;
				}

				.item-details {
					flex: 1;

					.item-name {
						font-size: 28rpx;
						color: #333;
						margin-bottom: 4rpx;
					}

					.item-specs {
						font-size: 24rpx;
						color: #999;
						margin-bottom: 4rpx;
					}

					.item-quantity {
						font-size: 24rpx;
						color: #666;
					}
				}

				.item-price {
					font-size: 28rpx;
					color: #333;
					font-weight: 500;
				}
			}
		}

		.payment-info {
			// margin-bottom: 32rpx;

			.info-row {
				display: flex;
				align-items: center;
				justify-content: space-between;
				padding: 12rpx 0;

				&.total {
					border-top: 1px solid #f0f0f0;
					padding-top: 16rpx;
					margin-top: 16rpx;

					.info-label,
					.info-value {
						font-size: 32rpx;
						font-weight: 500;
					}
				}

				.info-label {
					font-size: 28rpx;
					color: #666;
				}

				.info-value {
					font-size: 28rpx;
					color: #333;

					&.discount {
						color: #ff4757;
					}
				}
			}
		}

		.order-info {
			.info-title {
				font-size: 28rpx;
				color: #333;
				font-weight: 500;
				margin-bottom: 16rpx;
			}

			.info-detail {
				display: flex;
				align-items: center;
				margin-bottom: 8rpx;

				.detail-label {
					font-size: 24rpx;
					color: #999;
					margin-right: 16rpx;
				}

				.detail-value {
					font-size: 24rpx;
					color: #666;
				}
			}
		}
	}

	.modal-footer {
		padding: 24rpx 32rpx 32rpx;
		border-top: 1px solid #f0f0f0;
	}

	:deep(.custom-shadowBtu) {
		width: 630rpx !important;
		height: 86rpx !important;
		margin: 0 auto !important;
		text-align: center !important;
		background: #000000 !important;
		border-radius: 49rpx !important;
	}
	:deep(.custom-shadowBtu2) {
		width: 530rpx !important;
		height: 86rpx !important;
		margin: 0 auto !important;
		text-align: center !important;
		background: #000000 !important;
		border-radius: 49rpx !important;
	}


</style>